package com.ksyun.whgc.liweiliang.work3;


/**
 * @Deseription 通过wait和notify来实现交替
 * @Author lwl
 * @Date 2023/4/18 19:47
 */
public class ThreadProblem {

    private static Object obj = new Object();

    public static void main(String[] args) {

        Num num = new Num();
        int flag = 5;

        new Thread(new PrintA("A",num,flag)).start();
        new Thread(new PrintB("B",num,flag)).start();
        new Thread(new PrintC("C",num,flag)).start();


    }


}
